import java.util.*;

public class Test {
    public static void main(String[] args){
        int[] arr = {1,34,112,45,67,3,7,57,8,65,346,23,56,89,79,91};
        MyHeap myHeap = new MyHeap();
        myHeap.initElem(arr);
        myHeap.createHeap();
        System.out.println(Arrays.toString(myHeap.getElem()));
        myHeap.delete();
        System.out.println(Arrays.toString(myHeap.getElem()));
        myHeap.insert(857);
        System.out.println(Arrays.toString(myHeap.getElem()));
        myHeap.sort();
        System.out.println(Arrays.toString(myHeap.getElem()));
    }
}
